package com.ms.client.task.api.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ms.client.task.api.pojo.TaskProject;
import com.ms.msclient.MsClient;
import com.ms.msclient.MsClientResponse;
import com.system.comm.model.KvEntity;
import com.system.comm.model.Page;

@MsClient(value="${service.id.task}", defalut="ms-cloud-task")
public interface ApiTaskProjectService {

	/**
	 * 分页获取信息
	 * @param taskProject
	 * @return
	 */
	@RequestMapping(value = "/api/taskProject/pageQuery")
	public MsClientResponse<Page<TaskProject>> pageQuery(TaskProject taskProject);

	/**
	 * 保存
	 * @param taskProject
	 * @return
	 */
	@RequestMapping(value = "/api/taskProject/save")
	public MsClientResponse<TaskProject> save(TaskProject taskProject);
	/**
	 * 获取对象
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/api/taskProject/get")
	public MsClientResponse<TaskProject> get(@RequestParam("id") Integer id);
	/**
	 * 获取所有对象
	 * @return
	 */
	@RequestMapping(value = "/api/taskProject/findAll")
	public MsClientResponse<KvEntity> findAll();
	/**
	 * 删除对象
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/api/taskProject/delete")
	public MsClientResponse<TaskProject> delete(@RequestParam("id") Integer id);
}
